package com.jinzhu;

import com.jinzhu.config.EnableJinZhuSwagger2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import tk.mybatis.spring.annotation.MapperScan;

@SpringBootApplication
//分布式要进行包扫描
@MapperScan(basePackages = "com.jinzhu.mapper")
//进行扫描包 工具包  其他模块的东西要被本模块调用要在本模块进行扫描包
@ComponentScan(basePackages = {"com.jinzhu","org.n3r.idworker"})
@EnableJinZhuSwagger2
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class,args);
    }
}
